package cn.tedu.ssm.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.tedu.ssm.pojo.Item;
import cn.tedu.ssm.service.ItemService;
@RestController
@CrossOrigin(origins = "*")
public class ItenController {
	@Autowired
	private ItemService itemService;
	@RequestMapping("/item/list/{num}")
	public List<Item> list(@PathVariable Integer num){
		return itemService.list(num);
	}
}
